home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo1.zoo / demo / msg / do.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-24  |  1.5 KB  |  39 lines

  1. /*    $Header: do.h,v 4.1 88/06/21 14:02:42 bianchi Exp $
  2.     $Source: /tmp/mgrsrc/demo/msg/RCS/do.h,v $
  3. */
  4. static char    h_do_[] = "$Source: /tmp/mgrsrc/demo/msg/RCS/do.h,v $$Revision: 4.1 $";
  5.  
  6. /*                        Copyright (c) 1987 Bellcore
  7.  *                            All Rights Reserved
  8.  *       Permission is granted to copy or use this program, EXCEPT that it
  9.  *       may not be sold for profit, the copyright notice must be reproduced
  10.  *       on copies, and credit should be given to Bellcore where it is due.
  11.  *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  12.  */
  13. /* simple server-client message protocol */
  14.  
  15. /* server messages */
  16.  
  17. #define S_HI    'H'        /* announce existence  (broadcast)*/
  18. #define S_BYE    'B'        /* announce demise     (broadcast)*/
  19. #define S_REPLY    'R'        /* reply to message    (point-to-point) */
  20.  
  21. /* types of server replies */
  22.  
  23. #define R_WHO    '?'        /* server identification */
  24. #define R_RCVD    'r'        /* received command */
  25. #define R_DO    '.'        /* working on command */
  26. #define R_DONE    'd'        /* command completed */
  27. #define R_HOST    'h'        /* rejected, no remote requests accepted */
  28. #define R_NET    'n'        /* Can't get file for remote request */
  29. #define R_BAD    'x'        /* command rejected */
  30. #define R_UNKWN    'u'        /* unknown command */
  31.  
  32. /* client messages */
  33.  
  34. #define C_WHO    '?'        /* who is out there  (broadcast) */
  35. #define C_DO    'F'        /* do 'file' command (next arg is file name) */
  36.  
  37. #define C_SNARF    '$'        /* use snarf buffer for file name */
  38. #define HOST    ':'        /* file name prefixed with hostname */
  39.